import { getData, getListData, postData, postDataWithQuery}  from './query.js'
/* 登录 */
export const login = (mobile,password) => {
	console.log(mobile,password,'mima')
	let obj = {mobile: mobile,password: password}
	return postData('/renren-api/api/login',obj)
}
/* 首页 */
export const getHomeInfo = (current,size) => {
	return getData('/renren-api/index/index',{current,size})
}
/* 个人中心 */
export const getPersonCenter = () => {
	return getData('/renren-api/user/userCenter')
}
/*  获取作品详情 */
export const getOpusDetail = (id) => {
	return getData(`/renren-api/index/info/${id}`)
}
/* 下载成功 */
export const downLoad = (opusId) => {
	return postData(`/renren-api/file/download?opusId=${opusId}`,{})
}